import { Controller, Get } from '@nestjs/common';
import { GiteeService } from './gitee.service';
import { RequireLogin } from '@/common/decorator/custom.decorator';
import { ApiOperation, ApiTags } from '@nestjs/swagger';


@Controller('gitee')
@ApiTags('Gitee')
@RequireLogin()
export class GiteeController {
  constructor(private readonly giteeService: GiteeService) {
  }

  @ApiOperation({ summary: '获取gitee组织动态' })
  @Get('/news')
  async getNews() {
    return await this.giteeService.getGiteeNews();
  }
}
